﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CapNhapTaiKhoan.ascx.cs" Inherits="iShopping.Admin.UserControl.CapNhapTaiKhoan" %>
<div id="capnhaptaikhoan" 
    style="border-style: solid; border-width: 1px; padding: 2px; margin: 6px 4px 6px 4px; " >
<div id="titlecapnhap" align="center"  
style="border-style: solid; border-width: 1px; padding: 2px; margin: 3px; background-color: #66CCFF" >
<h3>CẬP NHẬP THÔNG TIN TÀI KHOẢN</h3>
</div>
<!-- end title -->
<div id="chitietcapnhap"
 style="border-style: solid; border-width: 1px; padding: 2px; margin: 3px;" >
 <p  align="center">DANH SÁCH TÀI KHOẢN HỆ THỐNG</p>
<asp:GridView ID="gvTaiKhoan" runat="server" AutoGenerateColumns="False" AllowPaging="True"
            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" DataKeyNames="MaTaiKhoan" 
            onpageindexchanging="gvTaiKhoan_PageIndexChanging" 
            onrowdeleting="gvTaiKhoan_RowDeleting" onrowediting="gvTaiKhoan_RowEditing" 
            onrowupdating="gvTaiKhoan_RowUpdating" 
            onrowcancelingedit="gvTaiKhoan_RowCancelingEdit" 
            onrowupdated="gvTaiKhoan_RowUpdated" 
                onselectedindexchanged="gvTaiKhoan_SelectedIndexChanged"      >
            <Columns>
                <asp:BoundField DataField="MaTaiKhoan" HeaderText="Mã Tài Khoản" 
                    ReadOnly="True" />
                <asp:BoundField DataField="TenTaiKhoan" HeaderText="Tên Tài Khoản" />
                <asp:TemplateField HeaderText="Loại Tài Khoản">
                    <EditItemTemplate>
                        <asp:DropDownList ID="dllLoaiTaiKhoan" runat="server">
                        </asp:DropDownList>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblLoai" runat="server" Text='<%# Bind("TenloaiTK") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Trạng Thái">
                    <EditItemTemplate>
                        <asp:DropDownList ID="ddlTrangThai" runat="server">
                        </asp:DropDownList>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:Label ID="lblTrangThai" runat="server" Text='<%# Bind("TrangThai") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DiemTinCayBan" HeaderText="Điểm Tin Cậy Bán" />
                <asp:BoundField DataField="DiemTinCayMua" HeaderText="Điêm Tin Cậy Mua" />
                <asp:CommandField ButtonType="Image" DeleteImageUrl="~/images/Admin/delete.gif" 
                    ShowDeleteButton="True" DeleteText="Xóa" HeaderText="Xóa" />
                <asp:CommandField ButtonType="Image" CancelImageUrl="../images/Admin/cancel.gif" 
                    EditImageUrl="~/images/Admin/edit.gif" ShowEditButton="True" 
                    UpdateImageUrl="../images/Admin/update.gif" CausesValidation="False" 
                    CancelText="Hủy" HeaderText="Cập Nhập" UpdateText="Cập Nhập" />
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <RowStyle ForeColor="#000066" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
          <%--  <SortedAscendingCellStyle BackColor="#F1F1F1" />
            <SortedAscendingHeaderStyle BackColor="#007DBB" />
            <SortedDescendingCellStyle BackColor="#CAC9C9" />
            <SortedDescendingHeaderStyle BackColor="#00547E" />--%>
        </asp:GridView>
        </div>
      <!-- end chi tiet cap nhap -->
</div>